import React, { memo } from 'react'
// 导航条公共组件
import './index.css';
const NavigationBar = memo((props) => {
  return (
      <div className='navigationbar'>
          <div className="navigationbar_title">{ props.title}</div>
          <div className="navigationbar_list">
            {props.children}
            {/* react插槽,渲染未知结构 */}
          </div>
          <div className='navigationbar_more'>更多</div>
    </div>
  )
})

export default NavigationBar